package com.bds.btcdc.web.model.strategy;

import java.math.BigDecimal;

/**
 * Created by DongChenchen on 2018/5/1 0001
 * 单币 回购信息(一个BuyBackOneCoin对应1种货币类型)
 */
public class BuyBackOneCoin {
    //第一种:正常回购
    //第二种:购买最大值不得超过盈利
    private CoinPrice  coin;//数字货币，单价,总数量(手续费花的数量)
    //第三种:当上涨超过历史交易记录价格平均值的设定值。
    //则系统判定价格波动过大,系统将不自动处理,发送危险交易通知提醒用户手动处理。
    private BigDecimal up_price;//该币上涨的价格
    private BigDecimal order_avg_price;//该币交易记录价格平均值

    //是否可以回购
    private Integer can_buyback;//1:是  0：否
    //返回的消息
    private Message message;

    public CoinPrice getCoin() {
        return coin;
    }

    public void setCoin(CoinPrice coin) {
        this.coin = coin;
    }

    public BigDecimal getUp_price() {
        return up_price;
    }

    public void setUp_price(BigDecimal up_price) {
        this.up_price = up_price;
    }

    public BigDecimal getOrder_avg_price() {
        return order_avg_price;
    }

    public void setOrder_avg_price(BigDecimal order_avg_price) {
        this.order_avg_price = order_avg_price;
    }

    public Integer getCan_buyback() {
        return can_buyback;
    }

    public void setCan_buyback(Integer can_buyback) {
        this.can_buyback = can_buyback;
    }

    public Message getMessage() {
        return message;
    }

    public void setMessage(Message message) {
        this.message = message;
    }
}
